<?php
/**
 * +--------------------------------------------------------------
 * | eLuoPHP
 * +--------------------------------------------------------------
 * | Copyright (c) 2016-2018 http://qxwoo.cn All rights reserved.
 * +--------------------------------------------------------------
 * | y139w [y139w@163.com]
 * +--------------------------------------------------------------
 * | 异常处理类文件
 * +--------------------------------------------------------------
 */

namespace luo;


class Exception extends \Exception
{

    /**
     * @var array
     */
    protected $errorData = [];

    /**
     * @param $type
     * @param array $data
     */
    final protected function set($type, Array $data){

        $this->errorData[$type] = $data;

    }

    /**
     * @return array
     */
    final public function get(){

        return $this->errorData;

    }



}